cmake_minimum_required(VERSION 2.8)

PROJECT(dcm2stl)
SET(CMAKE_BUILD_TYPE Release)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

set(VTK_LIBRARIES "/usr/lib/x86_64-linux-gnu")


find_package(VTK COMPONENTS
        vtkCommonDataModel
        vtkIOImage
        vtkRenderingCore
        vtkInteractionStyle
        vtkRenderingOpenGL2
        vtkRenderingFreeType
        vtkIOGeometry
        )
        
include("/usr/lib/cmake/vtk-7.1/UseVTK.cmake")
include_directories(
        "/usr/include/vtk-7.1"
)

link_directories(
        "/usr/lib/x86_64-linux-gnu"
)

set(sources src/dcm2stl.cpp)

add_library(dcm2stl SHARED ${sources})

TARGET_LINK_LIBRARIES(dcm2stl ${VTK_LIBRARIES})
